﻿/// <reference path="../Scripts/qunit.js" />
/// <reference path="KataRomanNumeralsObject_STEPS.js" />

module("KataRomanNumerals", {
  setup: function () {
    this.romanNumerals = new RomanNumerals();
  }
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(1), 'I', 'test 1 returns I');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(2), 'II', 'test 2 returns II');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(3), 'III', 'test 3 returns III');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(4), 'IV', 'test 4 returns IV');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(5), 'V', 'test 5 returns V');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(6), 'VI', 'test 6 returns VI');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(7), 'VII', 'test 7 returns VII');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(8), 'VIII', 'test 8 returns VIII');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(9), 'IX', 'test 9 returns IX');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(10), 'X', 'test 10 returns X');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(55), 'LV', 'test 55 returns LV');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(99), 'XCIX', 'test 99 returns XCIX');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(0), 'the number must be between 1 and 3000', 'test 0 returns ERROR');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman('aaa'), 'invalid input', 'test "aaa" returns ERROR');
});

test('integerToRoman', function () {
  equal(this.romanNumerals.integerToRoman(60), 'LX', 'test 60 returns LX');
});

test('integerToRoman', function () {
  debugger;
  equal(this.romanNumerals.integerToRoman(600), 'DC', 'test 600 returns DC');
});